<%@ page pageEncoding="UTF-8"%>

<%@ taglib uri="/tags/struts-tiles" prefix="tiles"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/struts-nested" prefix="nested"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<script type="text/javascript">
	function callback_entityRemove() {
		navTab.reload();
	}
</script>

<table class="table" layoutH="85" width="100%" id="tbl_flowseqs">
	<thead>
		<tr>
			<th align="center" width="55px">步骤序号</th>
			<th align="center">预审环节</th>
			<th align="center">环节描述</th>
			<th align="center">审批角色</th>
			<th align="center">编辑</th>
			<th align="center">删除</th>
		</tr>
	</thead>
	<tbody>
		<logic:present name="datagrid">
			<logic:iterate name="datagrid" id="entity" indexId="idx">
				<tr id="dconf-${entity.id}" ${idx % 2 == 1 ? 'style="background-color: #F5F5F5"' : ''}>
					<td>${idx+1}</td>
					<td style="text-align:center">${entity.nodeTitle}</td>
					<td style="text-align:left">${entity.nodeDesc}</td>
					<td style="text-align:center">${entity.toAuditRole ne null ? entity.toAuditRole.roleName : '---'}</td>
					<td style="text-align:center">
						<a href="app/flow/def/confer.do?action=dialogFlowConferPage&id=${entity.id}" mask="true" 
							target="dialog" title="`${entity.nodeTitle}` - 节点编辑" width="504" height="240" class="oplink">编辑</a>
					</td>
					<td style="text-align:center">
						<a href="app/flow/def/confer.do?action=actionRemoveFlowConfer&id=${entity.id}" 
							target="ajaxTodo" title="确定删除该`${entity.nodeTitle}`节点吗？" class="oplink" callback="callback_entityRemove()">删除</a>
					</td>
				</tr>
			</logic:iterate>
		</logic:present>
	</tbody>
</table>